<?php
class Post extends Model {
	protected $validate = array(
		array('title', 'require', '标题不能为空'),
		array('content', 'require', '内容不能为空'),
		array('cateid', 'require', '分类不能为空'),
	);
	
	public function setTable() {
		$this->table = $this->db->getTable('post');
	}
	
	public static function getTable() {
		return $this->db->getTable('post');
	}
	
	public function title() {
		return $this->title;
	}
	
	/**
	 * 文章内容
	 */
	public function content() {
		$content = $this->content;
		return $content;
	}
	
	/**
	 * 作者
	 */
	public function author() {
		
	}
	
	public function updateViews() {
		
	}
}
?>